package com.yihu.wlyy.repository;

import com.yihu.wlyy.entity.TblBasic;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by Administrator on 2016.08.20.
 */
public interface TblBasicDao extends PagingAndSortingRepository<TblBasic, Integer>, JpaSpecificationExecutor<TblBasic> {
    @Query(" from TblBasic a  where a.cardid = ?1 and a.state='1'")
    TblBasic findByIdCard(String idcard);
}
